package com.ebeitech.auction.domain;

import com.ebeitech.auction.db.annotation.Column;
import com.ebeitech.auction.db.annotation.Id;
import com.ebeitech.auction.db.annotation.PrimaryKey;
import com.ebeitech.auction.db.annotation.Table;

import java.io.Serializable;

/**
 * Created by alice on 2017/10/24.
 */
@Table(name = "UserInfoTable")
public class User implements Serializable {

	private int _id;

	private String userId;       //用户ID
	private String userAccount;  //用户账号
	private String userName;     //用户名
	private String password;     //密码
	private String userSig;      //腾讯云登陆令牌
	private String token;        //Token

	private String userCode;     //角色编码
	private String permission;   //权限名称

	private String loginStatus;  //登陆状态
	private String lastLoginTime;//上次登录时间

	@Id
	@Column(name = "_id")
	public int get_id() {
		return _id;
	}

	public void set_id(int _id) {
		this._id = _id;
	}

	@PrimaryKey
	@Column(name = "userId")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "userAccount")
	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	@Column(name = "userName")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "password")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "userSig")
	public String getUserSig() {
		return userSig;
	}

	public void setUserSig(String userSig) {
		this.userSig = userSig;
	}

	@Column(name = "userCode")
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	@Column(name = "token")
	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	@Column(name = "permission")
	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	@Column(name = "loginStatus", defaultValue = "0")
	public String getLoginStatus() {
		return loginStatus;
	}

	public void setLoginStatus(String loginStatus) {
		this.loginStatus = loginStatus;
	}

	@Column(name = "lastLoginTime")
	public String getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

}
